package com.weibo.common;

import java.io.InputStream;
import java.util.Properties;

public final class PropertiesUtil {
	private final static Properties sysProp;
	static {
		sysProp = new Properties();
		InputStream in = null;
		try {
			in = PropertiesUtil.class.getClassLoader().getResourceAsStream("xml.spring/URL.properties");
			sysProp.load(in);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (in != null) {
				try {
					in.close();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		}
	}
	public static String getProp(String key) {
		return sysProp.getProperty(key);
	}
}
